package com.example.springboot01.controller;

import com.example.springboot01.entity.TUser;
import com.example.springboot01.service.TUserService;
import org.springframework.web.bind.annotation.*;


import javax.annotation.Resource;
import java.util.List;

/**
 * (TUser)表控制层
 *
 * @author makejava
 * @since 2022-12-22 18:56:31
 */
@RestController
public class TUserController {
    /**
     * 服务对象
     */
    @Resource
    private TUserService tUserService;

    @GetMapping("/queryAll")
    public List<TUser> queryAll(){
        return tUserService.queryAll();
    }

    @GetMapping("/addUser")
    public boolean addUser(TUser tUser){
        boolean b = tUserService.addUser(tUser);
        return b;
    }

}

